//
//  UIButton+hf.m
//  ThridPackage
//
//  Created by 韩艳锋 on 2019/7/23.
//  Copyright © 2019 韩艳锋. All rights reserved.
//

#import "UIButton+hf.h"

@implementation UIButton (hf)

- (void)setText:(NSString*)text font:(UIFont*)font textColor:(UIColor*)textColor {
    [self setAttributedTitle:[[NSAttributedString alloc] initWithString:text attributes:@{NSFontAttributeName: font,
                                                                                    NSForegroundColorAttributeName: textColor
                                                                                          }] forState:UIControlStateNormal];
}
@end
